#-*-codeing = utf-8 -*-
# @Tine:2024/9/18 
# @Author:计科201121尚益帆
#File：2.3.py
# @Software:PyCharm
import random

d = [[], [], []]
balls = ['1', '2', '3', '4', '5', '6', '7', '8', '9']

for ball in balls:
    bag_index = random.randint(0,2)
    d[bag_index].append(ball)

print("红袋：", d[0])
print("黄袋：", d[1])
print("蓝袋：", d[2])
